from Commons import *
def Teleport(creature):#teleports a creature
    for i in range(100000):
        x,y = RNG.randint(0,len(Game()[A_MAP].tiles)-1),RNG.randint(0,len(Game()[A_MAP].tiles[0])-1)
        if (not Game()[A_MAP][(x,y)].block_movement and Game()[A_MAP][L_CRE][(x,y)] == None):
            creature.place(x,y)
            return
